# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=icmpquery
pkgver=1.0
pkgrel=5
groups=('blackarch' 'blackarch-scanner')
pkgdesc='Send and receive ICMP queries for address mask and current time.'
arch=('x86_64' 'aarch64')
url='http://www.angio.net/security/'
license=('custom:unknown')
source=("http://www.angio.net/security/icmpquery.c")
sha512sums=('026fbc6f92a840fb60bb5e6c78ff2099c61507cf8e95588026e50cb867693871c74904ab776d37509ad786b7db0f499e41f60a94d97ff1c848f23ad362f8d6cf')

build() {
  gcc "$pkgname.c" -o $pkgname
}

package() {
  install -Dm 755 $pkgname "$pkgdir/usr/bin/$pkgname"
}

